package com.ty.day2;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create 2023/11/7 15:34
 */
public class Five {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入时间（s）：");
        double t= sc.nextDouble();
        double s = 1. / 2 * 9.8 * t * t;
        System.out.println("物体位移："+s+"m");
        char a ='中';
    }
}
